/**
 * Created by arvin on 2017/3/30 0030.
 */
import React,{Component} from 'react';
import {  Spin } from 'antd';
import  MyBread from '../MyBread/mybread';
import  Apple from '../apple/apple';
import  Cloud from '../cloud/cloud';
import  User from '../user/user';
export default class Page extends Component{

    render(){
        let {active='apple',...other}=this.props;
        switch (active.key){
            case 'apple':
                return (<Apple {...other}/>)
            break;
            case 'cloud':
                return (<Cloud {...other}/>)
            break;
            case 'user':
                return (<User {...other}/>)
            break;
            default:
                return (<Apple {...other}/>);

        }

    }

}